package com.supermap.dataservice.server.mysql;

import com.alibaba.dubbo.config.annotation.Service;
import com.supermap.dataservice.mysql.service.UserService;
import com.supermap.dubbo.service.UserDubboService;
import com.supermap.dubbo.service.domain.User;

import javax.annotation.Resource;

@Service(version = "1.0")
public class UserDubboServiceImpl implements UserDubboService {

    @Resource
    UserService userService;

    @Override
    public int addUser(String name, String age) {
        return userService.addUser(name, age);
    }

    @Override
    public User findById(String id) {
        return userService.findById(id);
    }

    @Override
    public void updataById(String id, String name) {
        userService.updataById(id, name);
    }

    @Override
    public void deleteById(String id) {
        userService.deleteById(id);
    }
}
